package com.example.mybaiduweishi.vo;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Index;
import org.greenrobot.greendao.annotation.NotNull;
import org.greenrobot.greendao.annotation.Property;
import org.greenrobot.greendao.annotation.Unique;
import org.greenrobot.greendao.annotation.Generated;

/**
 * Created by Administrator on 2017/5/23 0023.
 */

@Entity(
        active = false,
        nameInDb = "AWESOME_USERS",
        //索引
        indexes = {
                @Index(value = "name DESC", unique = true)
        },
        createInDb = true,
        generateConstructors = true
)
public class BaiBaoXiang {
    @Property
    @NotNull
    private String name;
    @Id(autoincrement = true)
    private Long id;
    @Property
    @NotNull
    private String icon;
public String getIcon() {
        return this.icon;
}
public void setIcon(String icon) {
        this.icon = icon;
}
public Long getId() {
        return this.id;
}
public void setId(Long id) {
        this.id = id;
}
public String getName() {
        return this.name;
}
public void setName(String name) {
        this.name = name;
}
@Generated(hash = 1930921887)
public BaiBaoXiang(@NotNull String name, Long id, @NotNull String icon) {
        this.name = name;
        this.id = id;
        this.icon = icon;
}
@Generated(hash = 580428834)
public BaiBaoXiang() {
}

}
